<%@ page language="java" import="java.util.*"
	contentType="text/html;charset=UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<script type="text/javascript">
	function clearText(obj) {
		obj.value = "";
	}
</script>
		<title>首页</title>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Content-Language" content="zh-cn">

		<link id="editCss" rel="stylesheet" type="text/css"
			href="css/style.css" />
		<link rel="stylesheet" type="text/css" href="/css/style.css">
		<script type="text/javascript" src="/js/crawler.js" ></script>
	
<script type="text/javascript">
	function quit(){
		var form = document.getElementById("quitForm");
		form.submit();
	}
</script>
	
	</head>
	<body>
		<div class="head_bg">
			<div class="head_left"></div>

			<div class="head_right">
				<div class="head_right_l"></div>
				<div class="rightBox">
					<img src="/images/head_ico.gif" align="middle" />
					欢迎您：
					<span>${currUser.userName }</span> |
					<img src="/images/userinfo_ico.gif" align="middle" />
					上次登录时间 :
					<span>2009-11-19</span> 
					<form name="quitForm" id="quitForm" action="/login" method="post">
						<input type="hidden" name="quit" id="quit" value="true">
					  <a href="javascript:quit()">退出</a>
					</form>
				</div>
			</div>
		</div>
		<center>
			<form name="crawler" method="post" action="/crawler/seachControl">


				<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
				<input name="key" id="key" size="60" maxlength="2048"
					style="height: 30; top: 300px;" />
				<input type="Submit" value="搜  索" style="height: 30; width: 50;" />
				<br />
				<span><font style="color: blue; font-style: italic;">关键字请以空格符号隔开
				</font></span>
				<br /><br /><br /><br /><br />
				<span><font style="color: blue; font-style: italic;">直接在下面输入您想要采集的站点： </font> </span><br />
				<textarea id="fromStation" name="fromStation" rows="5%" cols="80"></textarea>
				<br /><br />
				<input type="Reset" value="重  置" style="height: 25; width: 60;" />
				<br /><br /><br /><br />
				<span><font style="color: red; font-style: italic;">您收藏的站点：
				</font></span><br />
				<br />
				<table>
				<tr>
				<c:forEach items="${websiteList}" var="website" varStatus="status">
					<td><input type="checkbox" name="station" value="${website.path}" />
					<c:choose>
						<c:when test="${empty website.title}">${website.path}</c:when>
						<c:otherwise>${website.title}</c:otherwise>
					</c:choose></td>
					<c:if test="${status.count % 4 == 0 }"></tr><tr></c:if>
				</c:forEach>
				</tr></table>
				<input type="button" name="addStation" id="addStation"
							value="添加收藏站点" onclick="openWin('../crawler/addWebsite.jsp','add',350,100)" />
				<br />
			</form>
			<br />
			<br />
			<div>
				<font style="color: blue;"> CopyRight &copy; 中诚信资讯科技有限公司</font>
			</div>
		</center>
	</body>
</html>
